package com.example.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Course {

    private Integer courseId;  //课程id
    private Integer categoryId;  //课程类别id
    private String courseName;  //课程名称
    private String gradeLevel;  //课程年级
    private Integer courseStatus; //课程状态
    private Integer courseNumber; //课程容纳人数
    private String  courseTime; //上课时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseStartTime; //报名起始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseEndTime; //报名结束时间
    private String location;  //上课地点
    private String courseDescription; //课程描述
    private String instructors; //上课老师
    private String imagePath; // 图片路径

}
